package test.administrator.example.com.mvptest1.framework.support.activity;

/**
 * Created by thinkpad on 2018/7/18.
 */

import android.os.Bundle;
import android.os.PersistableBundle;
import android.support.annotation.Nullable;

import test.administrator.example.com.mvptest1.framework.MvpPresenter;
import test.administrator.example.com.mvptest1.framework.MvpView;

/**
 * 代理模式->第一重代理->生命周期->目标接口：定义的是Activity生命周期的方法
 */
public interface ActivityMvpDelegate<V extends MvpView, P extends MvpPresenter<V>> {

	void onCreate(Bundle savedInstanceState);

	void onRestart();

	void onStart();

	void onResume();

	void onPause();

	void onStop();

	void onDestroy();

	//增加数据缓存生命周期方法
	void onSaveInstanceState(Bundle outState);

	void onPostCreate(@Nullable Bundle savedInstanceState);

}
